#include<iostream>
#include<cstdio>
using namespace std;
char c0;
int main()
{
	cin >> c0;
	int i, j;
	for (i = 0; i<3; i++)
	{
		for (j = 0; j <2-i; j++)
			cout << " ";
		for (j = 2*i+1; j > 0; j--)
			cout << c0;
		cout << endl;
	}
	for (i = 2; i > 0; i--)
	{
		for (j = 0; j <3 - i; j++)
			cout << " ";		
		for (j = 2*i-1; j > 0; j--)
			cout << c0;
		cout << endl;
	}
//	system("pause");
}